<template>
  <div class="patient-info" v-if="true">
    <div class="patient-info-inside">
      <div class="header">
        <div class="left item">
          <img
              alt="左侧"
              src="@/components/assets/images/design/1-12.webp"
          />
        </div>
        <div class="middle item">住院患者信息</div>
        <div class="right item">
          <img
              alt="右侧"
              src="@/components/assets/images/design/1-12.webp"
          />
        </div>
      </div>
      <el-row class="patient-info-area">
        <el-col :span="24" class="first">
          <div class="sign">姓名</div>
          <div class="content">{{patientInfo?.name}}</div>
        </el-col>
        <el-col :span="24">
          <div class="sign">性别</div>
          <div class="content">{{patientInfo?.sex}}</div>
        </el-col>
        <el-col :span="24">
          <div class="sign">生日</div>
          <div class="content">{{patientInfo?.birthday}}</div>
        </el-col>
        <el-col :span="24" >
          <div class="sign">身份证号</div>
          <div class="content">{{patientInfo?.idNo}}</div>
        </el-col>
        <el-col :span="24" class="borderTop">
          <div class="last">
            预缴金余额：{{patientInfo?.accBalance}}
            <div class="item right" @click="handleSure">确定</div>
          </div>

        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: 'InpatientInformation',

  componentName: "InpatientInformation",

  components: {},


  data() {
    return {}
  },

  computed: {
    // 患者信息
    patientInfo() {
      return this.$store.getters["DRCbiz/getInpatientInformation"]
    }
  },

  mounted() {
  },

  methods: {

    // 点击患者确定
    handleSure() {
      this.$emit('handlePatientInfoSure')
    },

    // 修改患者手机号
    handleEdit(){
      console.log('修改患者手机号')
    },
  },
}

</script>

<style scoped lang="scss">
@import "./assets/style";
</style>